package com.mtt.erp.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mtt.erp.common.domain.MttErpResponse;
import com.mtt.erp.common.domain.QueryRequest;
import com.mtt.erp.common.exception.MttErpException;
import com.mtt.erp.goods.domain.PGoods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mtt.erp.goods.dto.PGoodsDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author sjz
 */
public interface IPGoodsService extends IService<PGoods> {
    IPage<PGoods> findGoods(QueryRequest request, PGoodsDto pGoodsDto);
    List<PGoods> findGoodsList(QueryRequest request, PGoodsDto pGoodsDto);

    void createGoods(PGoods goods);

    void updateGoods(PGoods goods);

    void putAway(String[] goodsIds);

    void saleOut(String[] goodsIds);

    void batchInsert(List<PGoods> data);

    MttErpResponse improtByExcel(MultipartFile file) throws MttErpException;
}
